import request from '@/utils/request'

export function fn(params){
  return request({
     url:"/treeHole/hole/list",
     methods:"get",
     params:params
  })
}
//测评管理
export function test(){
   return request({
      url:"/evaluation/management/list",
      methods:"get",
   })
}

//文章管理
export function art(params){
   return request({
      url:"/system/article/list",
      methods:"get",
      params:params
   })
}

export function delet(ids){
  return request({
    url:`/evaluation/management/del/${ids.ids}`,
    headers: {
      'Content-Type': 'application/json'
    },
    methods:"delete",
  })
}
export function add(data){
  return request({
    url:"/system/article",
    method:"post",
    data
  })
}


export function Tiania(data) {
  return request({
    url: '/system/teacher',
    headers: {
      Authorization: 'string'
    },
    method: 'post',
    data:data,

  })
}


// 咨询师管理 获取路由
export const getRouters = () => {
  return request({
    url: '/getRouters',
    method: 'get'
  })
}
//信息渲染
export const rework = () => {
  return request({
    url: '/system/teacher/list?Authorization=auto',
    method: 'get'
  })
}

//分页查询

//增加
// export const tianjia = () => {
//   return request({
//     url: '/system/teacher',
//     method: 'post',
//
//   })
// }
// export function Tiania(data) {
//   return request({
//     url: '/system/teacher',
//     headers: {
//       Authorization: 'string'
//     },
//     method: 'post',
//     data:data,
//
//   })
// }


//查看所有咨询师信息
export const zcan = () => {
  return request({
    url: '/system/user/list',
    method: 'get',
    // data:data
  })
}
//删除
export const del = (ids) => {
  return request({
    url: `/system/teacher/`+ids,
    method: 'DELETE',
    headers:{
      Authorization:'string'
    }
  })
}
//修改
export const alter = (data) => {
  return request({
    url: '/system/teacher',
    method: 'put',
    headers:{
      Authorization:'string'
    },
    data:data
  })
}
//查询
export const check = (data) => {
  return request({
    url: '/system/teacher/list',
    method: 'get',
    params:data
  })
}
//
export function labelview(data) {
  return request({
    url: '/system/label/list',
    method: 'get',
    params: data
  })
}
